s = [1, 2, 3, 4, 5, "上山打老虎"]             # 定义元组
print(s[len(s) - 1])                         # 元组索引s[角标]
for each in s:
    print(each)

for each in range(len(s)):
    print(s[each])

print(s[:3])                                # 切片
print(s[3:])
print(s[0:6:2])
print("\n")

print(s[-1])
print(s[-len(s)])
print("\n")

s.append("第一")
print(s[len(s) - 1])
print("\n")

s.extend(["第二", 89, "jjj"])
print(s[(len(s) - 3) : len(s)])
print("\n")

s.insert(len(s), "第三")
print(s[len(s) - 1])
print("\n")

s.insert(2, "第四")
for each in range(len(s)):
   print(s[each]) 
print("\n")
